package demo1;

import java.util.ArrayList;
import java.util.Collection;

public class CollectionRemoveDemo {
    public static void main(String[] args) {
        Collection coll = new ArrayList();
        coll.add("abc");
        coll.add("aaa");
        coll.add("ddd");
        coll.add("aaa");
        coll.add("yyy");
        System.out.println(coll);
        boolean boo = coll.remove("aaa");
        System.out.println(boo);
        System.out.println(coll);
    }
}
